package com.juno.cafenoa.cart;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.Spinner;
import android.widget.TimePicker;
import android.widget.Toast;

import com.juno.cafenoa.R;

public class PickupTimeAlertView extends LinearLayout {
	private Context mContext;

	Spinner spnPaymentMethod;
	
	public PickupTimeAlertView(Context context) {
		super(context);
		this.mContext = context;

		LayoutInflater inflater = (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
		inflater.inflate(R.layout.dialog_pickuptime, this);
		
		ArrayAdapter<CharSequence> strPaymentMethodList = ArrayAdapter.createFromResource(context, R.array.payment_method, android.R.layout.simple_spinner_item);
		strPaymentMethodList.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
		spnPaymentMethod = (Spinner) findViewById(R.id.spnPaymentMethod);
		spnPaymentMethod.setAdapter(strPaymentMethodList);
		spnPaymentMethod.setPrompt("결제 방법 선택");

		TimePicker timePicker = (TimePicker) findViewById(R.id.timePicker);
		timePicker.setIs24HourView(true);
	}

}
